module.exports = {
    publicPath: "./",
    outputDir: "dist",
    lintOnSave: false,
    // 配置webpack打包
    configureWebpack: (config) => {
        // 取消console打印    
        config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
        // 如果是多环境打包
        //if (process.env.NODE_ENV === 'production') {
        //config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true
        // }
    },
    css: {
        loaderOptions: {
            css: {},
            postcss: {
                plugins: [
                    require("postcss-px2rem")({
                        remUnit: 192///设计图宽度/10
                    })
                ]
            }
        }
    }
};